const router= {
  name: 'oj',
  path: 'oj',
  component: () => import('/@/views/oj/index.vue'),
  redirect: '/home/oj/index',
  children: [
    {
      path: 'index',
      component: () => import('/@/views/oj/ProblemsView.vue'),
      name: 'ProblemsView',
      meta: {
        title: 'OJ系统首页浏览页面',
        keepAlive: true,
      },
    },
    {
      path: 'addProblem',
      component: () => import('/@/views/oj/AddProblemView.vue'),
      name: 'addProblemView',
      meta: {
        title: 'OJ系统首页',
        keepAlive: true,
      },
    },
    {
      path: 'problemSubmit/:id',
      component: () => import('/@/views/oj/ProblemSubmit.vue'),
      name: 'ProblemSubmit',
      meta: {
        title: 'OJ问题提交系统',
        keepAlive: true,
      },
    },

    {
      path: 'problemSubmitView',
      component: () => import('/@/views/oj/ProblemSubmitView.vue'),
      name: 'ProblemSubmitView',
      meta: {
        title: 'OJ提交信息查看',
        keepAlive: true,
      },
    },
  ]
}

export default router